import requestAxios from '@/utils/request'

export const loginApi = data => {
  const config = {
    method: 'POST',
    url: '/h5/user/login',
    headers: {
      Authorization: 'stirng' // 添加自定义的授权头部字段
    },
    data
  }
  return requestAxios(config)
}

export const registerApi = data => {
  return requestAxios.post('/h5/user/register', data)
}
